<script>
	export default {
		onLaunch: function() {
			try{
				 uni.getStorageSync('user')
			}catch(e){
				console.log("请先进行登录");
				uni.navigateTo({
					url:'/pages/login/login'
				})
			}
			console.log('App Launch')
		},
		onShow: function() {
			let user = uni.getStorageSync('user')
			
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import "~@/static/iconfont/iconfont.css";
</style>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
</style>

